import request from '@/utils/request'

let LangApi = {
    langList(data, errorback) {
        return request._post('/sys/lang/lists', data, errorback);
    },
    add(data, errorback) {
        return request._post('/sys/lang/add', data, errorback);
    },
    update(data, errorback) {
        return request._post('/sys/lang/update', data, errorback);
    },
    setDefault(data, errorback) {
        return request._post('/sys/lang/setDefault', data, errorback);
    },
    delete(data, errorback) {
        return request._post('/sys/lang/delete', data, errorback);
    },
    getAll(data, errorback) {
        return request._post('/sys/lang/getAll', data, errorback);
    },
    reloadCache(data, errorback){
        return request._post('/sys/lang/reloadCache', data, errorback);
    }
}
export default LangApi;